<?
$action = $this->uri->segment(3);
$action_url = site_url() . "/billboard/bb_vehicle/$action/";
$this->load->view('header');
?>

<h2>Enter Vehicle Details</h2>

<form name="bb_vehicledetails" id="bb_vehicledetails" method="POST" action="<?= $action_url; ?>">
<input type='hidden' name='id' id='id' value='<?= $id; ?>' >
<table cellspacing="2" cellpadding="2" border="0" width="100%">
	<tr valign='top' height='20'>

            <td align='right'> <b> Title:  </b> </td>

            <td>
               <input type='text' name='Title' id='Title' value='<?= $Title; ?>' />
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> Showroom:  </b> </td>

            <td>
                <input name='Showroom' id='Showroom' type='radio' value='Yes' />Yes<br />
                <input name='Showroom' id='Showroom' type='radio' value='No' />No
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> Image:  </b> </td>

            <td>
               <input type='text' name='Image' id='Image' value='<?= $Image; ?>' />
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> org_id:  </b> </td>

            <td>
               <select name="org_id" id="org_id" >
				<option value="">Choose Contact_org</option><?
			 foreach ($contact_orglist as $contact_org) {
				$lookupid   = $contact_org["id"];
				$lookuptext   = $contact_org["Name"];
?>
				<option value="<?= $lookupid; ?>" <?= ($lookupid == $org_id)?"selected=selected":""; ?> ><?= $lookuptext; ?></option>
<?			 } ?>
			</select>

            </td>
         </tr>


</table>

<input type="submit" name="Submit" value="Save">
<input type="reset" name="resetForm" value="Clear Form">

</form>
<?php $this->load->view('footer'); ?>